<?php 
include TMPL_PATH.'public/header.phtml';
?>
<div class="subnav">
    <div class="content-menu ib-a blue line-x">
        <a href='javascript:;' class="on"><em>配送方式列表</em></a><span>|</span>
        <a onclick="javascript:openwinx('<?php echo U('shipping/shipping_add');?>','add_shipping')" href='javascript:;'><em>添加配送方式</em></a>
    </div>
</div>
<div class="pad_10">
<div class="table-list">
    <table width="100%" cellspacing="0" >
        <thead>
            <tr>
             <th align='center' width="50">ID</th>
            <th align='left' width="150">配送方式</th>
            <th align='left' width="200">快递名称</th>
            <th align='center' width="100">状态</th>
            <th align='center' width="100">免费额度</th>
            <th class="hidden" align='center' width="100">物流保价</th>
            <th align='center' width="100">货到付款</th>
            <th align='center' width="100">排序</th>
						<th>管理操作</th>
            </tr>
        </thead>
     <tbody>
   <?php 
   	if(isset($shippingList) && $shippingList):
   		foreach ($shippingList as $v):
   ?>
			<tr>
                   <td align='center'><?php echo $v['id'];?></td>
					<td align='left'><?php echo $v['name'];?></td>
					<td align='left'><?php echo $v['title'];?></td>
					<td align="center"><?php if($v['status']==1){?><font color="red">√</font><?php }else{?><font color="blue">×</font><?php }?></td>
					<td align="center"><?php echo $v['free_price'];?></td>
					<td class="hidden" align="center"><?php if($v['is_save_price']==1){?><font color="red">√</font><?php }else{?><font color="blue">×</font><?php }?></td>
					<td align="center"><?php if($v['type']==1){?><font color="red">√</font><?php }else{?><font color="blue">×</font><?php }?></td>
					<td align='center'><?php echo $v['listorder'];?></td>
					<td align='center'>
					<a onclick="javascript:openwinx('<?php echo U('shipping/shipping_edit', 'sid='.$v['id']);?>','')" href='javascript:;'>编辑</a>&nbsp;&nbsp;|&nbsp;&nbsp;
					<a href="javascript:confirmurl('<?php echo U('shipping/shipping_delete', 'sid='.$v['id']);?>','确认要删除 『<?php echo $v['title']?>』 吗？')">删除</a>
					</td>
				</tr>
	<?php 
		endforeach;
		endif;
	?>
   </tbody>
    </table>
</div>
</div>
</body>
</html>